<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统设置</title>
    <style>
        .settings-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        .settings-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            padding: 20px;
        }
        
        .settings-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #667eea;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
        }
        
        .form-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .form-textarea {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            resize: vertical;
            min-height: 80px;
        }
        
        .btn-save {
            background: #667eea;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        
        .btn-save:hover {
            background: #5a6fd8;
        }
    </style>
</head>
<body>
    <div class="settings-container">
        <div class="settings-card">
            <div class="settings-title">📝 博客设置</div>
            <form>
                <div class="form-group">
                    <label class="form-label">博客名称</label>
                    <input type="text" class="form-input" value="我的博客">
                </div>
                <div class="form-group">
                    <label class="form-label">博客描述</label>
                    <textarea class="form-textarea">这是一个简约的博客管理系统</textarea>
                </div>
                <div class="form-group">
                    <label class="form-label">每页显示文章数</label>
                    <input type="number" class="form-input" value="10">
                </div>
                <button type="submit" class="btn-save">保存设置</button>
            </form>
        </div>
        
        <div class="settings-card">
            <div class="settings-title">👤 管理员设置</div>
            <form>
                <div class="form-group">
                    <label class="form-label">管理员用户名</label>
                    <input type="text" class="form-input" value="admin">
                </div>
                <div class="form-group">
                    <label class="form-label">管理员邮箱</label>
                    <input type="email" class="form-input" value="admin@blog.com">
                </div>
                <div class="form-group">
                    <label class="form-label">新密码</label>
                    <input type="password" class="form-input" placeholder="留空则不修改">
                </div>
                <button type="submit" class="btn-save">保存设置</button>
            </form>
        </div>
        
        <div class="settings-card">
            <div class="settings-title">🔧 系统信息</div>
            <div style="line-height: 1.8;">
                <div><strong>PHP版本:</strong> <?php echo PHP_VERSION; ?></div>
                <div><strong>服务器:</strong> <?php echo $_SERVER['SERVER_SOFTWARE'] ?? 'Unknown'; ?></div>
                <div><strong>数据库:</strong> MySQL</div>
                <div><strong>框架版本:</strong> Blog CMS v1.0</div>
                <div><strong>最后更新:</strong> <?php echo date('Y-m-d H:i:s'); ?></div>
            </div>
        </div>
        
        <div class="settings-card">
            <div class="settings-title">📊 数据统计</div>
            <div style="line-height: 1.8;">
                <div><strong>总文章数:</strong> <?php echo isset($arrs) ? count($arrs) : 0; ?></div>
                <div><strong>总用户数:</strong> 156</div>
                <div><strong>总评论数:</strong> 89</div>
                <div><strong>数据库大小:</strong> 2.5 MB</div>
                <div><strong>缓存大小:</strong> 0.8 MB</div>
            </div>
        </div>
    </div>
</body>
</html>